<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="聚宝吧,jubaobar.com，"/>
<meta name="description" content="聚宝吧是由杭州凡伟网络科技有限公司研发的一个中小企业收货款的支付平台，此平台乃中国首创，国内第一家实现收货款的贷款金融功能的服务产品，欢迎新用户注册聚宝吧，马上开始轻松解决企业现金流问题！"/>
<title>聚宝吧-招财宝</title>
<link href="/resources/new/css/base.css" rel="stylesheet" type="text/css" />
<link href="/resources/new/css/user.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/libs/jquery.min.js"></script>

</head>

<body>
<div id="header-container">
  <div class="header-content">
  <div class="logo fll"><a href="/zcb/zhaocaibao.htm" title="招财宝/聚宝吧"><h1>聚宝吧/招财宝</h1></a></div>
  </div>
</div>
<div class="header-Line"></div>
<div id="index-main-container">
 <div class="login-outer">
<div class="login-main">
<div class="login-tit">用户登录</div>
<div class="ligon-list">
<ul>

  	<li>
    	<label class="ti">用户名：</label>
         <input id="username" type="text" name="username" tabindex="1" class="receSum required" />
         <div id="username-tip" class="error-tips-1 spanRed"></div>
     </li>
     <li>
       <label class="ti">密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
       <input id="passwd" type="password" name="passwd" tabindex="2" class="receSum required" />
	</li>
    <li>
       <label class="ti">验证码：</label>
       <input id="checkCode" class="required codes" tabindex="3" style="width:50px" class="receSum required"/>
	   <img title="看不清，点击换一换" src="/checkCode.htm" width="76" height="33" id="checkCodeImage"  />
	   <a href="#" id="checkCodeHref" class="xq">看不清,换一张</a>
	   <div id="checkcode-tip" class="error-tips-1 spanRed"></div>
     </li>
     <li class="login"><a href="javascript:void(0)" onclick="javascript:login()" class="nextStep fll" title="登录"><span class="botton-text fll login-sum" >登&nbsp;&nbsp;录</span></a></li>
</ul>   
</div>
    <!-- 
   <div class="login-open"><a href="#" class="xq">我要申请开通</a></div>
    -->
</div>
   <div class="clear"></div>
 </div>
</div>
<div class="footer-container">
  <div class="footer-content"><p class="footer-tips fll"><img src="/resources/new/images/union.jpg" width="149" height="32" /><a href="http://webscan.360.cn/index/checkwebsite/url/www.39249.com" target="_blank"><img src="http://webscan.360.cn/status/pai/hash/be9b7b92c0204ce0275b60814fb9ce77" width="100" height="32" /></a><img src="/resources/new/images/cnn.jpg" width="100" height="32" /></p><p class="footer-copyright flr">杭州凡伟网络科技有限公司©2012 浙ICP备12040171号&nbsp;&nbsp;<script src="http://s16.cnzz.com/stat.php?id=4228610&web_id=4228610&show=pic" language="JavaScript"></script>
</p></div>
</div>
<script type="text/javascript">

function login() {
	$(".required:input").trigger('blur');
	var numError = $('.onError').length;
	if(numError){
		return false;
	}
	
	var mobile = $("#username").val();
	var password = $("#passwd").val();
	var checkCode = $("#checkCode").val();
	
	$.post('/login.htm', {
		'mobile' : mobile,
		'password' : password,
		'checkCode':checkCode,
		'type':4
	}, function(data) {
		var str = $.trim(data);
		if (str == "success" || str == "mobileunconf") {
			window.location.href = "/zcb/zhaocaibao.htm";
		} else{
			$("#username-tip").empty();
			$("#username-tip").append(data);
		}
	});
}

	$(function(){           
    	$('#checkCodeImage').click(function () {//生成验证码  
     	$(this).hide().attr('src', '/checkCode.htm?' + Math.floor(Math.random()*100) ).fadeIn(); })      
    });   
          
	$('#checkCodeHref').click(function () {//生成验证码  
     	$('#checkCodeImage').hide().attr('src', '/checkCode.htm?' + Math.floor(Math.random()*100) ).fadeIn(); 
	});   
	
	$('.required:input').blur(function(){
		var $parent = $(this).parent();
		$parent.find(".formtips").remove();
		
		if($(this).is('#username')){
			var pattern = /^(13[0-9]|147|15[0|1|2|3|5|6|7|8|9]|18[0|2|3|5|6|7|8|9])\d{8}$/;
			if(this.value == "" || this.value == null || !pattern.test(this.value)){
				$('#username-tip').empty();
				$('#username-tip').append("<span class='formtips onError' style='color:red'>请填写手机号码</span>");
			}
		}
		if($(this).is('#checkCode')){
			if(this.value == "" || this.value == null){
				$('#checkcode-tip').empty();
				$('#checkcode-tip').append("<span class='formtips onError' style='color:red'>请填写验证码</span>");
			}
		}
		
		$(document).bind('keydown', function (e) {
            var key = e.which;
            if (key == 13) {
                e.preventDefault();
                login();
            }
        });
	});
</script>
</body>
</html>